<%
	/* 是否是数字字符串 */
	function isNumeric($value,$type)
	{
		var boolValue=isNaN($value)==true ? false:true;
		var numberEnum=['int','integer','float','real','positive','negative','nil','zero'];
		       if($type!=undefined&&numberEnum.indexOf($type)!=-1)
		       {			      
			      $type=String($type).toLowerCase();
			      $value=Number($value);
			      if($type=='int'||$type=='integer'){
					boolValue=$value.isInteger();
			      }else if($type=='float'||$type=='real'){
				      	boolValue=$value.isFloat();
			      }else if($type=='positive'){
				      	boolValue=$value.isPositive();
			      }else if($type=='negative'){
				        boolValue=$value.isNegative();
			      }else if($type=='nil'||$type=='zero'){
				        boolValue=($value==0);
			      }
		       }
		return boolValue;
	};
	function IsNumeric($value,$type) {isNumeric($value,$type)};
	/* 返回数据类型 */
	function varType($var)
	{
		//number,bool,string,array,date,json,function,undefined		
		var $varType=typeof($var);		
		if($varType=='object')
		{
			switch($var.constructor)
			{
				case Object:
					$varType='object';	
					break;				
				case String:
					$varType='string';
					break;				
				case Number:
					$varType='number';
					break;	
				case Boolean:
					$varType='boolean';
					break;		
				case Function:
					$varType='function';
					break;						
				case Array:
					$varType='array';
					break;
				case Date:
					$varType='date';
					break;				
				case Enumerator:
					$varType='enumerator';
					break;
				case RegExp:
					$varType='regexp';
					break;
				case VBArray:
					$varType='VBArray';
					break;					
				case Error:
					$varType='object';
					break;					
				default:
					$varType='object';	//unbeknow
			}
		}
		return $varType;
	};	
	function VarType($var){varType($var)};	
	/* 返回现在时间 */
	function now()
	{
		return Date.now().toCommString();
	};
	function Now(){return now()};
%>